/*
 * blogsignin.cpp
 *
 *  Created on: Jul 20, 2010
 *      Author: nintang
 */
#include "blogsignin.h"

blogsignin::blogsignin(QWidget *parent)
    : QWidget(parent)
{
	//setWindowFlags(Qt::WindowSoftkeysVisibleHint);
	this->resize(360,580);
	QPalette pal;
	pal.setBrush(QPalette::Background, QBrush(QPixmap(":/images/5.jpg")));
	this->setPalette(pal);
	this->setStyleSheet("QLineEdit{color:rgb(4,49,35);font:20px; border-radius: 4px; border-width: 1px; border-style: solid; border-color: rgb(150,165,165); background-color: rgba(224, 250, 255, 75%); }"  "QLabel{color: rgb(4,49,35); font: bold 20px ;}" 
			"QRadioButton{color:rgb(4,49,35); font:bold 20px ; selection-background-color: transparent; selection-color:rgb(4,49,35)}");
	QWidget *widget1=new QWidget(this);
	widget1->resize(330,425);
	widget1->move(15,125);
	widget1->setStyleSheet("background: white; border-radius: 10px;");	
	QLabel *labelName=new QLabel(QApplication::translate("blogignin", "\346\230\265\347\247\260\357\274\232", 0, QApplication::UnicodeUTF8),this);
	QLineEdit *lineEditName=new QLineEdit("",this);
	QLabel *labelSex=new QLabel(QApplication::translate("blogignin", "\346\200\247\345\210\253\357\274\232", 0, QApplication::UnicodeUTF8),this);
	QRadioButton *radioButtonMale=new QRadioButton(QApplication::translate("blogignin", "\347\224\267", 0, QApplication::UnicodeUTF8),this);
	QRadioButton *radioButtonFemale=new QRadioButton(QApplication::translate("blogignin", "\345\245\263", 0, QApplication::UnicodeUTF8),this);	
	QLabel *labelPassword1=new QLabel(QApplication::translate("blogignin", "\345\257\206\347\240\201\357\274\232", 0, QApplication::UnicodeUTF8),this);
	QLineEdit *lineEditPassword1=new QLineEdit("",this);
	QLabel *labelPassword2=new QLabel(QApplication::translate("blogignin", "\351\207\215\345\244\215\345\257\206\347\240\201\357\274\232", 0, QApplication::UnicodeUTF8),this);
	labelPassword2->setStyleSheet("font: bold 15px ;");
	QLineEdit *lineEditPassword2=new QLineEdit("",this);
	QLabel *labelEmail=new QLabel(QApplication::translate("blogignin", "\346\263\250\345\206\214\351\202\256\347\256\261\357\274\232", 0, QApplication::UnicodeUTF8),this);
	labelEmail->setStyleSheet("font: bold 19px ;");
	QLineEdit *lineEditEmail=new QLineEdit("",this);
	QPushButton *pushButtonSign=new QPushButton(this);
	pushButtonSign->setStyleSheet("background-image: url(:/images/17.png); border-style: outset; border-width: 1px; border-radius: 6px; border-color: gray;");
	labelName->setGeometry(QRect(30, 153, 80, 30));
	lineEditName->setGeometry(QRect(110, 150, 220, 35));
	labelSex->setGeometry(QRect(30, 203, 80, 30));
	radioButtonMale->setGeometry(QRect(110, 197, 100, 35));
	radioButtonFemale->setGeometry(QRect(210, 197, 100, 35));
	labelPassword1->setGeometry(QRect(30, 253, 80, 30));
	lineEditPassword1->setGeometry(QRect(110, 250, 220, 35));
	lineEditPassword1->setEchoMode(QLineEdit::Password);       //Display asterisks instead of the characters actually entered
	labelPassword2->setGeometry(QRect(30, 303, 80, 30));
	lineEditPassword2->setGeometry(QRect(110, 300, 220, 35));
	lineEditPassword2->setEchoMode(QLineEdit::Password);
	labelEmail->setGeometry(QRect(30, 363, 100, 30));
	lineEditEmail->setGeometry(QRect(30, 395, 300, 35));
	pushButtonSign->setGeometry(QRect(101, 465, 158, 50));	
	//back = new QAction(tr("Back"), this);
	//back->setSoftKeyRole(QAction::NegativeSoftKey);
	//connect(back, SIGNAL(triggered()), this, SLOT(backtoregistration()));
	//addAction(back);
	QPushButton *pushButtonRight=new QPushButton(this);
	pushButtonRight->setGeometry(QRect(0, 580, 180, 60));	
	pushButtonRight->setStyleSheet("border-image:url(:/images/56.png);border:0px;");
	QPushButton *pushButtonLeft=new QPushButton(this);
	pushButtonLeft->setGeometry(QRect(180, 580, 180, 60));	
	pushButtonLeft->setStyleSheet("border-image:url(:/images/57.png);border:0px;");
	connect(pushButtonLeft, SIGNAL(clicked()), this, SLOT(backtoregistration()));				
}
	
blogsignin::~blogsignin()
{

}

void blogsignin::backtoregistration()
{
	blogregistration *w=new blogregistration();  
	w->showFullScreen();
	this->~blogsignin();
}
	
